{"version":3,"file":"catalog_panel.map.js","names":["BX","namespace","addClass","Landing","Utils","create","append","debounce","trim","bind","proxy","setTextContent","htmlToElement","remove","style","isArray","prepend","data","encodeDataValue","TYPE_CATALOG_SECTION","TYPE_CATALOG_ELEMENT","TYPE_CATALOG_ALL","UI","Panel","Catalog","id","Content","apply","this","arguments","searchContainer","createSearchContainer","listContainer","createListContainer","searchField","createSearchField","typeSwitcher","createTypeSwitcher","iBlockSwitcher","createIblockSwitcher","resolver","iblocks","layout","overlay","title","Loc","getMessage","getIblocks","length","content","Main","isExternalControlsEnabled","parent","document","body","marginTop","display","getInstance","instance","prototype","constructor","__proto__","superClass","search","query","requestData","replace","type","getValue","iblock","queryParams","action","Backend","Field","ButtonGroup","items","name","value","onChange","onSearchTypeChange","Dropdown","onIblockChange","onSearch","Text","placeholder","textOnly","onValueChange","props","className","renderResponse","response","oldResult","querySelector","scrollTop","map","item","subType","image","chain","reduce","accumulator","chainItem","push","join","initResponseItems","forEach","index","children","onItemClick","show","entityTypes","call","adjustIblockSwitcher","adjustEntityTypes","adjustSearchPlaceholder","Promise","resolve","getEntityTypes","input","buttons","button","hidden","includes","setValue","loaderContainer","top","showLoader","clearTimeout","searchTimeout","setTimeout","then","hideLoader","loader","Loader","offset","hide"],"sources":["catalog_panel.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAWF,GAAGG,QAAQC,MAAMF,SAChC,IAAIG,EAASL,GAAGG,QAAQC,MAAMC,OAC9B,IAAIC,EAASN,GAAGG,QAAQC,MAAME,OAC9B,IAAIC,EAAWP,GAAGG,QAAQC,MAAMG,SAChC,IAAIC,EAAOR,GAAGG,QAAQC,MAAMI,KAC5B,IAAIC,EAAOT,GAAGG,QAAQC,MAAMK,KAC5B,IAAIC,EAAQV,GAAGG,QAAQC,MAAMM,MAC7B,IAAIC,EAAiBX,GAAGG,QAAQC,MAAMO,eACtC,IAAIC,EAAgBZ,GAAGG,QAAQC,MAAMQ,cACrC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